package snakesladders.domain;

public class Square{
	private int index;
	
	public Square (int index) { this.index = index; }
	
	public int index() { return this.index; }
	
	public boolean equals(Object o) {
		if (! (o instanceof Square)) return false;
		Square other = (Square)o;
		return other.index == index;
	} 
	
	public int hashCode() {
		return index;
	}
}